﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Extensil.Common.CategoryHandler.Discovery
{
    public class ProbeParamList : List<ProbeParam>
    {
        public string this[string name]
        {
            get
            {
                foreach(ProbeParam pp in this)
                {
                    if(pp.Name.ToLower() == name.ToLower())
                        return pp.Value;
                }
                return "";
            }
        }
        public bool ContainsName(string name)
        {
            foreach(ProbeParam pp in this)
            {
                if(pp.Name.ToLower() == name.ToLower())
                    return true;
            }
            return false;
        }
    }
}
